jDev.event = {
    
  add: function(object, name, handler) {
    if (document.all)
      object.attachEvent('on'+name, handler);
    else
      object.addEventListener(name, handler, false);
  },
  
  remove: function(object, name, handler) {
    if (document.all)
      object.detachEvent('on'+name, handler);
    else
      object.removeEventListener(name, handler, false);
  },
  
  stop: function(event, preventDefault) {
    
    if (preventDefault) { 
      if (event.preventDefault) {
        event.preventDefault();
      } else {
        event.returnValue = false;
      }
    }
    
    if (event.stopPropagation) {
      event.stopPropagation();        
    } else {
      event.cancelBubble = true;
    }
  }
    
};